package com.example.jvm;

/**
 * @author jl
 * @since 2021/6/7 20:07
 */
public class Main1 {

    public static void main(String[] args) {
        System.out.println("totalMemory=" + Runtime.getRuntime().totalMemory() / 1024 / 1024);
        System.out.println("freeMemory=" + Runtime.getRuntime().freeMemory() / 1024 / 1024);
        System.out.println("maxMemory=" + Runtime.getRuntime().maxMemory() / 1024 / 1024);
        // -XX:+UseConcMarkSweepGC -Xms10m -Xmx10m -Xmn3m
    }
}
